package edu.turtlekit2.demos.perso1;

import java.awt.Color;

import edu.turtlekit2.kernel.agents.Turtle;

@SuppressWarnings("serial")
public class Homme extends Turtle implements Humain{

    int x = 0;
    int y = 0;
    int team = 0;
    int life = 8000;

    public Homme(){
            super("move");
    }
	
    @Override
    public void setup(){
            team = getAttributes().getInt("team");
            x = (int) (Math.random()*700);
            y = (int) (Math.random()*300);
            setXY(x, y);
            //setPatchColor(Color.blue);
            //moveTo(sunX+(int) (Math.random()*10),sunY+(int) (Math.random()*10));
            setHeading(Math.random()*360);
            setColor(Color.blue);
    }

    @SuppressWarnings("unused")
    public String move(){

            randomHeading();
            fd(1);

            return ("move");
    }

    @Override
    public int getLife() {
            // TODO Auto-generated method stub
            return life;
    }

    @Override
    public int getTeam() {
            // TODO Auto-generated method stub
            return team;
    }
}